package com.starsoft.trade.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * TradeAcount entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "trade_acount")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE, region="ormCache")
public class TradeAcount implements java.io.Serializable {

	// Fields

	private Integer acountId;
	private Date initDate;
	private Date endDate;
	private Double initCash;
	private String initPos;
	private String cmpIndex;
	private Boolean realAcount;
	private String exSystem;
	private String exSystemConfig;

	// Constructors

	/** default constructor */
	public TradeAcount() {
	}

	/** minimal constructor */
	public TradeAcount(Integer acountId) {
		this.acountId = acountId;
	}

	/** full constructor */
	public TradeAcount(Integer acountId, Date initDate, Date endDate, Double initCash, String initPos, String cmpIndex,
			Boolean realAcount, String exSystem, String exSystemConfig) {
		this.acountId = acountId;
		this.initDate = initDate;
		this.endDate = endDate;
		this.initCash = initCash;
		this.initPos = initPos;
		this.cmpIndex = cmpIndex;
		this.realAcount = realAcount;
		this.exSystem = exSystem;
		this.exSystemConfig = exSystemConfig;
	}

	// Property accessors
	@Id
	@Column(name = "acountId", unique = true, nullable = false)
	public Integer getAcountId() {
		return this.acountId;
	}

	public void setAcountId(Integer acountId) {
		this.acountId = acountId;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "initDate", length = 10)
	public Date getInitDate() {
		return this.initDate;
	}

	public void setInitDate(Date initDate) {
		this.initDate = initDate;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "endDate", length = 10)
	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Column(name = "initCash", precision = 22, scale = 0)
	public Double getInitCash() {
		return this.initCash;
	}

	public void setInitCash(Double initCash) {
		this.initCash = initCash;
	}

	@Column(name = "initPos", length = 500)
	public String getInitPos() {
		return this.initPos;
	}

	public void setInitPos(String initPos) {
		this.initPos = initPos;
	}

	@Column(name = "cmpIndex", length = 20)
	public String getCmpIndex() {
		return this.cmpIndex;
	}

	public void setCmpIndex(String cmpIndex) {
		this.cmpIndex = cmpIndex;
	}

	@Column(name = "realAcount")
	public Boolean getRealAcount() {
		return this.realAcount;
	}

	public void setRealAcount(Boolean realAcount) {
		this.realAcount = realAcount;
	}

	@Column(name = "exSystem", length = 20)
	public String getExSystem() {
		return this.exSystem;
	}

	public void setExSystem(String exSystem) {
		this.exSystem = exSystem;
	}

	@Column(name = "exSystemConfig", length = 200)
	public String getExSystemConfig() {
		return this.exSystemConfig;
	}

	public void setExSystemConfig(String exSystemConfig) {
		this.exSystemConfig = exSystemConfig;
	}

}